import { defineComponent, ref } from 'vue';
export default defineComponent({
  name: 'dayStuDemo5',
  props: ['msg'],
  setup(props) {
    const message = ref(props.msg);
    //方法：改变message数据
    const UpdataMessage = () => {
      message.value = '改变组合式API-自定义渲染-JSX'
    }
    return () => (
      <div>
        <h1>{message.value}</h1>
        <button onClick={UpdataMessage}>Updata Message</button>
      </div>
    );
  },
});
